//
//  FormulateBaseModel.m
//  littleLight's Project-A
//
//  Created by dllo on 16/5/21.
//  Copyright © 2016年 light. All rights reserved.
//

#import "FormulateBaseModel.h"

@implementation FormulateBaseModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

- (void)setProducts:(NSMutableArray *)products
{
    _products = products;
    NSMutableArray *array = [NSMutableArray array];
    
    for (NSDictionary *dic in products) {
        FormulateListBateModel *model = [[FormulateListBateModel alloc] init];
        [model setValuesForKeysWithDictionary:dic];
        [array addObject:model];
        
    }
    _products = [NSMutableArray arrayWithArray:array];
    

}

@end
